package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.HouseBooked;
import com.ruoyi.system.mapper.HouseBookedMapper;
import com.ruoyi.system.service.IHouseBookedService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 房屋预约Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-12-08
 */
@Service
public class HouseBookedServiceImpl implements IHouseBookedService 
{
    @Resource
    private HouseBookedMapper houseBookedMapper;

    /**
     * 查询房屋预约
     * 
     * @param id 房屋预约ID
     * @return 房屋预约
     */
    @Override
    public HouseBooked selectHouseBookedById(Long id)
    {
        return houseBookedMapper.selectHouseBookedById(id);
    }

    /**
     * 查询房屋预约列表
     * 
     * @param houseBooked 房屋预约
     * @return 房屋预约
     */
    @Override
    public List<HouseBooked> selectHouseBookedList(HouseBooked houseBooked)
    {
        return houseBookedMapper.selectHouseBookedList(houseBooked);
    }

    /**
     * 新增房屋预约
     * 
     * @param houseBooked 房屋预约
     * @return 结果
     */
    @Override
    public int insertHouseBooked(HouseBooked houseBooked)
    {
        return houseBookedMapper.insertHouseBooked(houseBooked);
    }

    /**
     * 修改房屋预约
     * 
     * @param houseBooked 房屋预约
     * @return 结果
     */
    @Override
    public int updateHouseBooked(HouseBooked houseBooked)
    {
        return houseBookedMapper.updateHouseBooked(houseBooked);
    }

    /**
     * 批量删除房屋预约
     * 
     * @param ids 需要删除的房屋预约ID
     * @return 结果
     */
    @Override
    public int deleteHouseBookedByIds(Long[] ids)
    {
        return houseBookedMapper.deleteHouseBookedByIds(ids);
    }

    /**
     * 删除房屋预约信息
     * 
     * @param id 房屋预约ID
     * @return 结果
     */
    @Override
    public int deleteHouseBookedById(Long id)
    {
        return houseBookedMapper.deleteHouseBookedById(id);
    }
}
